import React from 'react';
import './index.less';
import 'highlight.js/styles/base16/onedark.css'; // 引入渲染的主题样式

interface IHTMLPreviewModalProps {
    content: string;
}

export default function HTMLPreviewModal(props: IHTMLPreviewModalProps) {
    return (
        <>
            <div className="html-preview-modal" dangerouslySetInnerHTML={{ __html: props.content }} />
        </>
    );
}
